package com.zhuss.core.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.company.SearchCompanyBo;
import com.zhuss.bean.vo.core.company.DetailCompanyVo;
import com.zhuss.bean.vo.core.company.ListCompanyVo;
import com.zhuss.core.db.dao.gen.CompanyMapper;
import com.zhuss.core.db.entity.Company;

@Mapper
public interface CompanyDao extends CompanyMapper {
	
	void create(Company record);
	
	void delete(Company record);
	
	List<Company> listAll();

	List<ListCompanyVo> list(SearchCompanyBo bo);

	Integer countList(SearchCompanyBo bo);

	DetailCompanyVo detail(@Param("companyId") Long companyId);
	
	List<Company> listByName(@Param("name") String name);

	List<Company> listByType(@Param("type") Integer type);

    
}